"use client";

import { useEffect } from "react";
import MySub from "@/components/MySub";

export default function Error({
  error,
  reset,
}: {
  error: Error;
  reset: () => void;
}) {
  useEffect(() => {
    // Log the error to an error reporting service
    /* eslint-disable no-console */
    console.error(error);
  }, [error]);

  return (
    <div className="flex flex-col ">
      <div className="flex flex-col items-center justify-center mt-4">
        <MySub />
      </div>
      <div className="flex flex-col items-center justify-center mt-10">
        亲~无法找到资源？请重新搜索试试~
      </div>
    </div>
  );
}
